package com.nuoniu.sibanyun.entity.crm;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.nuoniu.sibanyun.common.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author baiqiang
 * @since 2020-08-15
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("crm_activity")
@ApiModel(value="CrmActivity对象", description="")
public class CrmActivity extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "租户id")
    @TableField("company_id")
    private Integer companyId;

    @ApiModelProperty(value = "租户名称")
    @TableField("company_name")
    private String companyName;

    @ApiModelProperty(value = "活动负责人Id")
    @TableField("activity_owner_id")
    private Integer activityOwnerId;

    @ApiModelProperty(value = "活动负责人姓名")
    @TableField("activity_owner_name")
    private String activityOwnerName;

    @ApiModelProperty(value = "市场活动名称")
    @TableField("activity_title")
    private String activityTitle;

    @ApiModelProperty(value = "类型：会议 网络研讨会 交易会 公开媒介 合作伙伴 推举程序 广告 条幅广告 直接邮件 电子邮件 电子市场 其它")
    @TableField("activity_type")
    private String activityType;

    @ApiModelProperty(value = "状态：计划中 激活的 非活跃 完成")
    @TableField("activity_state")
    private String activityState;

    @ApiModelProperty(value = "开始时间")
    @TableField("start_time")
    private String startTime;

    @ApiModelProperty(value = "结束时间")
    @TableField("end_time")
    private String endTime;

    @ApiModelProperty(value = "预期收益")
    @TableField("anticipated_revenue")
    private BigDecimal anticipatedRevenue;

    @ApiModelProperty(value = "预算成本（元）")
    @TableField("budget_cost")
    private BigDecimal budgetCost;

    @ApiModelProperty(value = "实际成本（元）")
    @TableField("actual_cost")
    private BigDecimal actualCost;

    @ApiModelProperty(value = "期望成功率（%）")
    @TableField("expected_success_rate")
    private BigDecimal expectedSuccessRate;

    @ApiModelProperty(value = "数据状态：0：正常 1.删除")
    @TableField("status")
    private String status;


    @ApiModelProperty(value = "创建人id")
    @TableField("create_user_id")
    private Integer createUserId;

    @ApiModelProperty(value = "创建人姓名")
    @TableField("create_user_name")
    private String createUserName;

    @ApiModelProperty(value = "修改人id")
    @TableField("update_user_id")
    private Integer updateUserId;

    @ApiModelProperty(value = "修改人姓名")
    @TableField("update_user_name")
    private String updateUserName;

    @ApiModelProperty(value = "创建日期")
    @TableField("create_date")
    private LocalDateTime createDate;

    @ApiModelProperty(value = "修改日期")
    @TableField("update_date")
    private LocalDateTime updateDate;


}
